package Bean;

import java.util.Date;

public class CarDetail {
    private int cid;            //序号
    private String CName;       //车型名称
    private String Content;     //车型简介
    private Date LTime;         //录入时间
    private int price;          //参考价格
    private int BrandID;        //所属品牌编号
    private String BrandName;   //品牌名称

    public CarDetail() {
    }

    //只有品牌编号,没有品牌名称，给添加时使用
    public CarDetail(int cid, String CName, String content, Date LTime, int price, int brandID) {
        this.cid = cid;
        this.CName = CName;
        Content = content;
        this.LTime = LTime;
        this.price = price;
        BrandID = brandID;
    }

    //只有品牌名称,没有品牌编号
    public CarDetail(int cid, String CName, String content, Date LTime, int price, String brandName) {
        this.cid = cid;
        this.CName = CName;
        Content = content;
        this.LTime = LTime;
        this.price = price;
        BrandName = brandName;
    }

    public int getCid() {
        return cid;
    }

    public void setCid(int cid) {
        this.cid = cid;
    }

    public String getCName() {
        return CName;
    }

    public void setCName(String CName) {
        this.CName = CName;
    }

    public String getContent() {
        return Content;
    }

    public void setContent(String content) {
        Content = content;
    }

    public Date getLTime() {
        return LTime;
    }

    public void setLTime(Date LTime) {
        this.LTime = LTime;
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    public int getBrandID() {
        return BrandID;
    }

    public void setBrandID(int brandID) {
        BrandID = brandID;
    }

    public String getBrandName() {
        return BrandName;
    }

    public void setBrandName(String brandName) {
        BrandName = brandName;
    }

    @Override
    public String toString() {
        return "CarDetail{" +
                "cid=" + cid +
                ", CName='" + CName + '\'' +
                ", Content='" + Content + '\'' +
                ", LTime=" + LTime +
                ", price=" + price +
                ", BrandID=" + BrandID +
                '}';
    }

}
